home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 February / PCWorld_2007-02_cd.bin / v cisle / pcwpatch / pcwPatchLoader1.3.exe / pcwPatchLoader1.3.1 / pcwPatchLoader.hta
Text File  |  2006-12-08  |  51KB  |  1,362 lines

  1. <HTML>
  2.  <HEAD>
  3.   <TITLE>Zφskßnφ aktualizacφ pro jejich ruΦnφ instalaci v.1.3.1
  4.   </TITLE>
  5.   <HTA:APPLICATION
  6.    ID = "PatchLoader"
  7.    APPLICATIONNAME = "PatchLoader"
  8.    BORDER = "normal"
  9.    CAPTION = "yes"
  10.    SHOWINTASKBAR = "yes"
  11.    SINGLEINSTANCE = "yes"
  12.    SYSMENU = "yes"
  13.    WINDOWSTATE = "normal"
  14.    SCROLL = "no"
  15.    SCROLLFLAT = "no"
  16.    VERSION = "1.0"
  17.    INNERBORDER = "no"
  18.    SELECTION = "no"
  19.    MAXIMIZEBUTTON = "no"
  20.    MINIMIZEBUTTON = "yes"
  21.    NAVIGABLE = "No"
  22.    CONTEXTMENU = "no"
  23.    BORDERSTYLE = "normal"/>
  24.  
  25. <STYLE type="text/css">
  26. body             {font-family:Tahoma,Verdana,Arial,Geneva;
  27.     border:none;
  28.     scrollbar-arrow-color: #BBF0FF;
  29.     scrollbar-base-color: #000000;
  30.     scrollbar-dark-shadow-color: #00204A;
  31.     scrollbar-track-color: #00204A;
  32.     scrollbar-face-color: #2969B5;
  33.     scrollbar-shadow-color: #000000;
  34.     scrollbar-highlight-color: #00204A;
  35.     scrollbar-3d-light-color: #00204A;
  36.     font-style:normal;
  37.     font-size:12;
  38.     color:#FFFFFF;
  39.     background-color:#2969B5;
  40.     filter:progid:DXImageTransform.Microsoft.Gradient(
  41.     GradientType=1,
  42.     StartColorStr="#00204A",
  43.     EndColorStr="#00357B");
  44. }
  45. .Label    {
  46.     font-family:Tahoma,Verdana,Arial,Geneva;
  47.     font-style:normal;
  48.     font-size:12;
  49.     color:#FFFFFF;
  50.     background-color:#2969B5;
  51.     filter:progid:DXImageTransform.Microsoft.Gradient(
  52.     GradientType=1,
  53.     StartColorStr="#00204A",
  54.     EndColorStr="#00357B");
  55.     Border:none
  56. }
  57.  
  58. .Textbox    {
  59.     font-family:Tahoma,Verdana,Arial,Geneva;
  60.     font-style:normal;
  61.     font-size:12;
  62.     color:#FFFFFF;
  63.     background-color:#2969B5;
  64.     filter:progid:DXImageTransform.Microsoft.Gradient(
  65.     GradientType=1,
  66.     StartColorStr="#00204A",
  67.     EndColorStr="#00357B");
  68.     border-right: #000000 2pt solid;
  69.     border-top: #000000 2pt solid;
  70.     border-left: #000000 2pt solid;
  71.     border-bottom: #000000 2pt solid;
  72. }
  73.  
  74. .Button    {
  75.     font-family:verdana;
  76.     font-size:12;
  77.     font-weight:bold;
  78.      background-color:#008000;
  79.     color:#FFFFFF;
  80.     border-right: #000000 2pt solid;
  81.     border-top: #000000 2pt solid;
  82.     border-left: #000000 2pt solid;
  83.     border-bottom: #000000 2pt solid;
  84.     filter:Alpha(opacity=100, finishopacity=40, style=3);
  85. }
  86.  
  87. <!--
  88.  a:link { font-family:verdana; font-size:12; color:#FF8000; }
  89.  a:visited { font-family:verdana; font-size:12; color:#FFFFFF; }
  90.  a:hover { font-family:verdana; font-size:12; color:#FF8000; font-weight:bold; }
  91. -->
  92. .Link    {
  93.     font-family:verdana;
  94.     font-size:12;
  95.     color:#FF8000;
  96.  
  97. }
  98. </STYLE>
  99.  
  100.  </HEAD>
  101.  <SCRIPT LANGUAGE="VBScript">
  102.     on error resume next
  103.     Set myfiles = CreateObject("Scripting.FileSystemObject")
  104.     Set myshell = CreateObject("Wscript.Shell")
  105.     Set Appshell = CreateObject("Shell.Application")
  106.     Set Pfad = Myfiles.GetFolder(".\Tools")
  107.     Set c = MyShell.Environment("PROCESS")
  108.          progfilesdir = c("programfiles")
  109.         allusersprofile = c("allusersprofile")
  110.         windir = c("systemroot")
  111.     Set dicElements = CreateObject("Scripting.Dictionary")   
  112.     Set oXMLDoc = CreateObject("Msxml2.DOMDocument")   
  113.     
  114.     Dim DwUrls
  115.     Dim proxparms
  116.     Dim PatchListe
  117.     
  118.     proxparms = ""
  119.     Clipfad = Pfad & "\mbsacli.exe"
  120.     catpfad = Pfad & "\wsusscan.cab"
  121.     
  122.     Parameter = "--continue --server-response --tries=0 --timeout=10 "
  123.     On Error Resume next
  124.     Winvers = myshell.Regread("HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\ProductName")
  125.     If Winvers = "" Then
  126.         MsgBox "Skript funguje pouze ve Windows XP a Windows Serveru 2003"
  127.         wscript.quit
  128.     elseif Instr(1, lcase(Winvers), "windows xp") <> 0 then
  129.         Winvers = "XP"
  130.         SP = "Stßhnout Service Pack 2 pro Windows XP (260 MB)"
  131.     elseif Instr(1, lcase(Winvers), "windows 2000") <> 0 then
  132.         Winvers = "2K"
  133.         'MsgBox "Skript funguje pouze ve Windows XP a Windows Serveru 2003"
  134.         'wscript.quit
  135.         SP = "Stßhnout Service Pack 4 pro Windows 2000 (129 MB)"
  136.     elseif Instr(1, lcase(Winvers), "windows 2003") <> 0 then
  137.         Winvers = "23K"
  138.         SP = "Stßhnout Service Pack 1 pro Windows Server 2003 (316 MB)"        
  139.     End If
  140.     
  141. '==========================================================================
  142.  
  143.     Sub SubInitFenster
  144.         on error resume next
  145.         window.resizeTo 630, 700
  146.         SPlabel.Value = SP
  147.         ret = myfiles.getfolder(".")
  148.         if instr(1, lcase(ret), "Φ")<>0 or instr(1, lcase(ret), "Ü")<>0 or instr(1, lcase(ret), "°")<>0 then
  149.           ret = Msgbox("Pokud PatchLoader spustφte se slo₧ky, jejφ₧ nßzev obsahuje znaky s diakritikou, pak nepracuje sprßvn∞. " &_
  150.       "Zkopφrujte prosφm skript a slo₧ku 'Tools' do slo₧ky, kterß neobsahuje pφsmena s diakritikou.", vbExclamation, "Chyba")
  151.       call SubQuit()
  152.     end if
  153.         Fold = myshell.Regread("HKEY_LOCAL_MACHINE\Software\PC-WELT\pcwPatchloader\")
  154.         Fold1 = myshell.Regread("HKEY_LOCAL_MACHINE\Software\PC-WELT\pcwPatchloader\altziel")
  155.         Pdef = myshell.Regread("HKEY_LOCAL_MACHINE\Software\PC-WELT\pcwPatchloader\proxy")
  156.         if not Fold = "" then
  157.             OrdnerInput.Value = Fold
  158.         end if
  159.         if not Fold1 = "" then
  160.             OrdnerInput1.Value = Fold1
  161.         end if
  162.         document.all.item("Download").Disabled=True
  163.         if OrdnerInput.Value = "" and OrdnerInput1.Value = "" then
  164.             document.all.item("Install").Disabled=True
  165.             document.all.item("checkit").Disabled=True
  166.             document.all.item("loadme").Disabled=True
  167.         elseif OrdnerInput.Value = "" and not OrdnerInput1.Value = "" then
  168.             Set Ladeord1 = myfiles.GetFolder(Fold1)
  169.             if Ladeord1.size = 0 Then 
  170.                 document.all.item("Install").Disabled=True
  171.                 document.all.item("checkit").Disabled=True
  172.                 document.all.item("loadme").Disabled=True
  173.             else
  174.                 document.all.item("Install").Disabled=False
  175.                 document.all.item("checkit").Disabled=True
  176.                 document.all.item("loadme").Disabled=True
  177.             end if
  178.         elseif OrdnerInput1.Value = "" and not OrdnerInput.Value = "" then
  179.           Set Ladeord = myfiles.GetFolder(Fold)
  180.             if Ladeord.size = 0 Then 
  181.                 document.all.item("Install").Disabled=True
  182.                 document.all.item("loadme").Disabled=True
  183.             else
  184.                 document.all.item("Install").Disabled=False
  185.                 document.all.item("loadme").Disabled=True
  186.             end if
  187.         else
  188.           Set Ladeord = myfiles.GetFolder(Fold)
  189.           Set Ladeord1 = myfiles.GetFolder(Fold1)
  190.             if Ladeord.size = 0 and Ladeord1.size = 0 Then 
  191.                 document.all.item("Install").Disabled=True
  192.                 document.all.item("loadme").Disabled=True
  193.             else
  194.                 document.all.item("Install").Disabled=False
  195.                 document.all.item("loadme").Disabled=True
  196.             end if
  197.         end if
  198.         If not len(Pdef) = 0 Then
  199.             document.all.Item("Proxy").Checked = true
  200.             document.all.item("Pserver").Disabled=false
  201.             document.all.item("Puser").Disabled=false
  202.             document.all.item("Ppass").Disabled=false
  203.             document.all.item("Pserver").Value=Pdef
  204.         else
  205.             document.all.Item("Proxy").Checked = false
  206.             document.all.item("Pserver").Disabled=true
  207.             document.all.item("Puser").Disabled=true
  208.             document.all.item("Ppass").Disabled=true
  209.             Pserver.Value="Proxy-Server:Port"
  210.         end if
  211.         document.all.item("loadme").Disabled=True
  212.         
  213.     End Sub
  214.  
  215. '==========================================================================    
  216.     Sub SubBrowseQuelle(Nummer)
  217.            Set AppFolder = AppShell.BrowseForFolder(0, "Vyberte slo₧ku, do nφ₧ budete chtφt umφstit soubory s aktualizacemi:",  &H0001, 17)
  218.            On Error Resume Next
  219.                StrOrdner = AppFolder.ParentFolder.ParseName(AppFolder.Title).Path
  220.                If err.number > 0 then 
  221.             i=instr(AppFolder, ":")
  222.             StrOrdner = mid(AppFolder, i - 1, 1) & ":\"
  223.         End If
  224.         If StrOrdner = "" Then Exit Sub
  225.         If Not (myfiles.FolderExists(StrOrdner)) then
  226.             g = MsgBox("Toto nenφ platnß slo₧ka." & Chr(10) & "Vyberte prosφm jinou cφlovou slo₧ku",16, "Skript PC WORLDu: Copyleft")
  227.         End If
  228.         if Nummer = 0 then
  229.           OrdnerInput.Value = StrOrdner
  230.           document.all.TheFrame.innerHTML = ""
  231.           document.all.item("checkit").Disabled=false
  232.           myshell.Regwrite "HKEY_LOCAL_MACHINE\Software\PC-WELT\pcwPatchloader\", StrOrdner
  233.         elseif Nummer = 1 then
  234.           OrdnerInput1.Value = StrOrdner
  235.           document.all.TheFrame.innerHTML = ""
  236.           myshell.Regwrite "HKEY_LOCAL_MACHINE\Software\PC-WELT\pcwPatchloader\altziel", StrOrdner
  237.         end if
  238.         if not OrdnerInput.Value = "" then
  239.           if not OrdnerInput1.Value = "" then
  240.             Set Ladeord = myfiles.GetFolder(OrdnerInput.Value)
  241.             Set Ladeord1 = myfiles.GetFolder(OrdnerInput1.Value)
  242.             if Ladeord.size = 0 and Ladeord1.size = 0 Then
  243.                document.all.item("Install").Disabled=True
  244.             else
  245.                document.all.item("Install").Disabled=False
  246.             end if
  247.           else
  248.             Set Ladeord = myfiles.GetFolder(OrdnerInput.Value)
  249.             if Ladeord.size = 0 Then
  250.                document.all.item("Install").Disabled=True
  251.             else
  252.                document.all.item("Install").Disabled=False
  253.             end if
  254.           end if
  255.         else
  256.           if not OrdnerInput1.Value = "" then
  257.             Set Ladeord1 = myfiles.GetFolder(OrdnerInput1.Value)
  258.             if Ladeord1.size = 0 Then
  259.                document.all.item("Install").Disabled=True
  260.             else
  261.                document.all.item("Install").Disabled=False
  262.             end if
  263.           else
  264.             document.all.item("Install").Disabled=True
  265.           end if
  266.         end if
  267.     End Sub
  268.  
  269. '==========================================================================
  270.     
  271.     Sub SubCheck
  272.         reboot = 0
  273.         on error resume next
  274.         DownloadVerz = OrdnerInput.Value
  275.         DownloadVerz1 = OrdnerInput1.Value
  276.         PatchListe = ""
  277.         document.all.TheFrame.innerHTML = ""
  278.  
  279.         If document.all.Item("Proxy").Checked and not Pserver.Value = "Proxy-Server:Port" and not Pserver.Value = "" Then
  280.             myshell.Regwrite "HKEY_LOCAL_MACHINE\Software\PC-WELT\pcwPatchloader\proxy", Pserver.Value 
  281.             if not Puser.Value = "" and not Puser.value = "Benutzername" then
  282.                 if not Ppass.Value = "" and not Ppass.Value = "Kennwort" then
  283.                     proxparms = " --proxy --proxy-user=" & Puser.Value & " --proxy-password=" & Ppass.Value & " "
  284.                 else
  285.                     proxparms = " --proxy --proxy-user=" & Puser.Value & " "
  286.                 end if
  287.             else
  288.                 proxparms = " --proxy "
  289.             end if
  290.             c.Remove("Http_Proxy") 
  291.             c("Http_Proxy") = Pserver.Value
  292.         elseif document.all.Item("Proxy").Checked and Pserver.Value = "Proxy-Server:Port" Then
  293.             msgbox "Nebyly zadßny ₧ßdnΘ ·daje pro p°ipojenφ k serveru proxy. Akce bude zruÜena.", 16, "Chyba"
  294.             exit Sub
  295.         elseif document.all.Item("Proxy").Checked and Pserver.Value = "" Then
  296.             msgbox "Nebyly zadßny ₧ßdnΘ ·daje pro p°ipojenφ k serveru proxy. Akce bude zruÜena.", 16, "Chyba"
  297.             exit Sub
  298.         end if
  299.         
  300.  
  301.         if not (myfiles.FileExists(windir & "\extract.exe")) then
  302.           Set extractit = myfiles.OpenTextFile(Pfad & "\extract.bat", 2, True)
  303.           Befehl1 = Chr(34) & Pfad & "\wget.exe" & Chr(34) & " " & Parameter & proxparms & "http://download.microsoft.com/download/win2000platform/extract/1.00.0.1/NT5/EN-US/extract_setup.exe" & " --directory-prefix=" & Chr(34) & Pfad & Chr(34)
  304.             Befehl2 = "cd /d " & chr(34) & pfad & chr(34) 
  305.             Befehl3 = "start /wait extract_setup.exe /T:" & chr(34) & Pfad & chr(34) & " /C"
  306.             Befehl4 = "start /wait extract.msi /passive"
  307.             Befehl5 = "copy " & chr(34) & progfilesdir & "\Resource Kit\extract.exe" & chr(34) & " " & windir
  308.             Befehl6 = "del " & chr(34) & Pfad & "\extract_setup.exe"
  309.             
  310.             extractit.writeline Befehl1
  311.           extractit.writeline Befehl2
  312.           extractit.writeline Befehl3
  313.           extractit.writeline Befehl4
  314.           extractit.writeline Befehl5
  315.           extractit.writeline Befehl6
  316.           extractit.close
  317.           ret = myshell.run("cmd.exe /c " & Chr(34) & Pfad & "\extract.bat" & Chr(34), 1, True)
  318.     elseif (myfiles.FileExists(windir & "\extract.exe")) and not (myfiles.FileExists(pfad & "\extract.msi")) then
  319.       Set extractit = myfiles.OpenTextFile(Pfad & "\extract.bat", 2, True)
  320.       Befehl1 = Chr(34) & Pfad & "\wget.exe" & Chr(34) & " " & Parameter & proxparms & "http://download.microsoft.com/download/win2000platform/extract/1.00.0.1/NT5/EN-US/extract_setup.exe" & " --directory-prefix=" & Chr(34) & Pfad & Chr(34)
  321.             Befehl2 = "cd /d " & chr(34) & pfad & chr(34) 
  322.             Befehl3 = "start /wait extract_setup.exe /T:" & chr(34) & Pfad & chr(34) & " /C"
  323.             Befehl4 = "del " & chr(34) & Pfad & "\extract_setup.exe"
  324.         
  325.           extractit.writeline Befehl1
  326.           extractit.writeline Befehl2
  327.           extractit.writeline Befehl3
  328.           extractit.writeline Befehl4
  329.           extractit.close
  330.           ret = myshell.run("cmd.exe /c " & Chr(34) & Pfad & "\extract.bat" & Chr(34), 1, True)
  331.         elseif (myfiles.FileExists(pfad & "\extract.msi")) and not (myfiles.FileExists(windir & "\extract.exe")) then
  332.         msgbox "╪i∩te se pokyny pr∙vodce instalacφ systΘmu a program nainstalujte do vßmi zadanΘ cφlovΘ slo₧ky"
  333.         myshell.run pfad & "extract.msi", 1, True
  334.         myfiles.CopyFile progfilesdir & "Resource Kit\extract.exe", windir, True
  335.         end if
  336.         
  337.         
  338.         wua1 = left(myfiles.GetFileVersion(windir & "\System32\wuauclt.exe"),1)
  339.         wua3 = mid(myfiles.GetFileVersion(windir & "\System32\wuauclt.exe"), 3, 1)
  340.         wuup = 0
  341.         
  342.         if wua1 < "5" then
  343.             wuup = "1"
  344.         elseif wua1 = "5" and wua3 < "8" then
  345.             wuup = "1"
  346.         end if
  347.         
  348.         
  349.         if wuup = "1" then
  350.             Set wuaupd = myfiles.OpenTextFile(Pfad & "\wuaupd.bat", 2, True)
  351.             
  352.             Befehl1 = Chr(34) & Pfad & "\wget.exe" & Chr(34) & " " & Parameter & proxparms & "http://download.windowsupdate.com/v6/windowsupdate/redist/standalone/WindowsUpdateAgent20-x86.exe" & " --directory-prefix=" & Chr(34) & Pfad & Chr(34)
  353.             Befehl2 = "cd /d " & chr(34) & pfad & chr(34) 
  354.             Befehl3 = "start /wait WindowsUpdateAgent20-x86.exe -q"
  355.             if not (myfiles.FileExists(pfad & "\WindowsUpdateAgent20-x86.exe")) then
  356.                 wuaupd.writeline Befehl1
  357.             end if
  358.             wuaupd.writeline Befehl2
  359.             wuaupd.writeline Befehl3
  360.             wuaupd.close
  361.             ret = myshell.run("cmd.exe /c " & Chr(34) & Pfad & "\wuaupd.bat" & Chr(34), 1, True)
  362.         elseif not (myfiles.FileExists(pfad & "\WindowsUpdateAgent20-x86.exe")) then
  363.             Set wuaupd = myfiles.OpenTextFile(Pfad & "\wuaupd.bat", 2, True)
  364.             Befehl1 = Chr(34) & Pfad & "\wget.exe" & Chr(34) & " " & Parameter & proxparms & "http://download.windowsupdate.com/v6/windowsupdate/redist/standalone/WindowsUpdateAgent20-x86.exe" & " --directory-prefix=" & Chr(34) & Pfad & Chr(34)
  365.             wuaupd.writeline Befehl1
  366.             wuaupd.close
  367.             ret = myshell.run("cmd.exe /c " & Chr(34) & Pfad & "\wuaupd.bat" & Chr(34), 1, True)
  368.         end if
  369.         
  370.  
  371.         
  372.         msiverl = left(myfiles.GetFileVersion(windir & "\System32\msiexec.exe"),1)
  373.         msiverr = mid(myfiles.GetFileVersion(windir & "\System32\msiexec.exe"), 3, 1)
  374.         msiver = 0
  375.         if msiverl < 3 then
  376.             msiver = 1
  377.         elseif msiverl = 3 and msiverr < 1 then
  378.             msiver = 1
  379.         elseif msiverl = 3 and msiverr = "" then
  380.             msiver = 1
  381.         end if
  382.         
  383.         if msiver = 1 then
  384.             Set msiupd = myfiles.OpenTextFile(Pfad & "\msiupd.bat", 2, True)
  385.             Befehl1 = Chr(34) & Pfad & "\wget.exe" & Chr(34) & " " & Parameter & proxparms & "http://download.microsoft.com/download/1/4/7/147ded26-931c-4daf-9095-ec7baf996f46/WindowsInstaller-KB893803-v2-x86.exe" & " --directory-prefix=" & Chr(34) & Pfad & Chr(34)
  386.             Befehl2 = "cd /d " & chr(34) & pfad & chr(34) 
  387.             Befehl3 = "WindowsInstaller-KB893803-v2-x86.exe -z -m"
  388.             if not (myfiles.FileExists(pfad & "\WindowsInstaller-KB893803-v2-x86.exe")) then
  389.                 msiupd.writeline Befehl1
  390.             end if
  391.             msiupd.writeline Befehl2
  392.             msiupd.writeline Befehl3
  393.             msiupd.close
  394.             ret = myshell.run("cmd.exe /c " & Chr(34) & Pfad & "\msiupd.bat" & Chr(34), 1, True)    
  395.             reboot = 1
  396.         elseif not (myfiles.FileExists(pfad & "\WindowsInstaller-KB893803-v2-x86.exe")) then
  397.             Set msiupd = myfiles.OpenTextFile(Pfad & "\msiupd.bat", 2, True)
  398.             Befehl1 = Chr(34) & Pfad & "\wget.exe" & Chr(34) & " " & Parameter & proxparms & "http://download.microsoft.com/download/1/4/7/147ded26-931c-4daf-9095-ec7baf996f46/WindowsInstaller-KB893803-v2-x86.exe" & " --directory-prefix=" & Chr(34) & Pfad & Chr(34)
  399.             msiupd.writeline Befehl1
  400.             msiupd.close
  401.             ret = myshell.run("cmd.exe /c " & Chr(34) & Pfad & "\msiupd.bat" & Chr(34), 1, True)
  402.         end if
  403.         
  404.  
  405.         msx = 0
  406.         for d = 4 to 20
  407.         if (myfiles.FileExists(windir & "\System32\msxml" & d & ".dll")) Then
  408.             msx = 1
  409.         end if
  410.         next
  411.         
  412.         strComputer = "."
  413.     cpu = "win32_Processor=æCPU0Æ"
  414.     wmiRoot = "winmgmts:\\" & strComputer & "\root\cimv2"
  415.     Set objWMIService = GetObject(wmiRoot)
  416.     Set objProcessor = objWMIService.Get(cpu)
  417.     If objProcessor.Architecture = 0 Then
  418.       myxml = "msxml6.msi"
  419.     elseif objProcessor.Architecture = 9 then
  420.       myxml = "msxml6_x64.msi"
  421.     else
  422.       if msx = 0 then
  423.         ret = Inputbox("Vyskytla se chyba, nemohu nainstalovat msxml6, najd∞te jej na nßsledujφcφ strßnce a nainstalujte jej ruΦn∞. PotΘ spus¥te skript znovu.", "Chyba", "http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=993c0bcf-3bcf-4009-be21-27e85e1857b1")
  424.         call SubQuit()
  425.       end if
  426.     end if
  427.         if msx = 0 then
  428.             Set xmlupd = myfiles.OpenTextFile(Pfad & "\xmlupd.bat", 2, True)
  429.             Befehl1 = Chr(34) & Pfad & "\wget.exe" & Chr(34) & " " & Parameter & proxparms & "http://download.microsoft.com/download/2/e/0/2e01308a-e17f-4bf9-bf48-161356cf9c81/" & myxml & " --directory-prefix=" & Chr(34) & Pfad & Chr(34)
  430.             Befehl2 = "cd /d " & chr(34) & pfad & chr(34)
  431.             Befehl3 = "start /wait msiexec /i " & myxml & " /quiet"
  432.             if not (myfiles.FileExists(pfad & "\" & myxml)) then
  433.                 xmlupd.writeline Befehl1
  434.             end if
  435.             xmlupd.writeline Befehl2
  436.             xmlupd.writeline Befehl3
  437.             xmlupd.close
  438.             ret = myshell.run("cmd.exe /c " & Chr(34) & Pfad & "\xmlupd.bat" & Chr(34), 1, True)
  439.         elseif not (myfiles.FileExists(pfad & "\" & myxml)) then
  440.             Set xmlupd = myfiles.OpenTextFile(Pfad & "\xmlupd.bat", 2, True)
  441.             Befehl1 = Chr(34) & Pfad & "\wget.exe" & Chr(34) & " " & Parameter & proxparms & "http://download.microsoft.com/download/2/e/0/2e01308a-e17f-4bf9-bf48-161356cf9c81/" & myxml & " --directory-prefix=" & Chr(34) & Pfad & Chr(34)
  442.             xmlupd.writeline Befehl1
  443.             xmlupd.close
  444.             ret = myshell.run("cmd.exe /c " & Chr(34) & Pfad & "\xmlupd.bat" & Chr(34), 1, True)
  445.         end if
  446.  
  447.         if reboot = 1 then
  448.             ret = Msgbox("Do systΘmu byl nainstalovßn Windows Installer 3.1. Aby skript sprßvn∞ fungoval, je nutno restartovat poΦφtaΦ. Po restartu poΦφtaΦe spus¥te skript znovu." & vbcr & vbcr & "Restartovat nynφ", vbYesNo + vbExclamation, "Je nutno restartovat poΦφtaΦ")
  449.             if ret = vbYes then
  450.                 Set Sysess = GetObject("winmgmts:{impersonationLevel=impersonate,(Shutdown)}").ExecQuery("select * from Win32_OperatingSystem where Primary=true")
  451.                 For Each sys In Sysess
  452.                     Sys.Win32Shutdown 6
  453.                     exit sub
  454.                 Next
  455.             end if
  456.         end if    
  457.  
  458.         If not (myfiles.FileExists(catpfad)) Then
  459.             LoadIt
  460.             if LoadIt = "10" then
  461.                 exit Sub
  462.             end if
  463.         Else
  464.             Laden = MsgBox("Chcete stßhnout aktußlnφ databßzi aktualizacφ od Microsoftu?", 4, "Stßhnout soubor Wsusscan.CAB")
  465.             If Laden = 6 Then
  466.                 myfiles.DeleteFile catpfad
  467.                 LoadIt
  468.                 if LoadIt = "10" then exit Sub
  469.             End If
  470.         End If
  471.         document.all.TheFrame.innerHTML = "Probφhß kontrola..."
  472.  
  473.         mbsa2check Clipfad, catPfad, "load"
  474.         
  475.  
  476.         Set DownloadUrls = myfiles.OpenTextFile(Pfad & "\DownloadUrls.txt", 1, False)
  477.         Set Patches = myfiles.OpenTextFile(Pfad & "\Patches.txt", 2, True)
  478.         n = 0
  479.         Set Dverz = Myfiles.Getfolder(DownloadVerz)
  480.         Set Dats = Dverz.Files
  481.         if not DownloadVerz = "" then
  482.           Set Dverz1 = Myfiles.Getfolder(DownloadVerz1)
  483.           Set Dats1 = Dverz1.Files
  484.         end if
  485.         Do
  486.             Zeile = DownloadUrls.Readline
  487.             Patch = Mid(Zeile, instrrev(Zeile, "/", -1, 1)+1, Len(Zeile))
  488.             for each Dat in Dats
  489.                 DatName = Myfiles.GetBaseName(Dat)
  490.                 DatExt = MyFiles.GetExtensionName(Dat)
  491.                 if instr(1, lcase(Patch), lcase(DatName), 1) <> 0 and len(Patch) > len(Datname) + len(DatExt) + 1 then
  492.                     myfiles.MoveFile DownloadVerz &  "\" & DatName & "." & DatExt, DownloadVerz &  "\" & Patch
  493.                 end if
  494.             next
  495.             
  496.             If not (myfiles.FileExists(DownloadVerz & "\" & Patch)) Then
  497.                 If not (myfiles.FileExists(DownloadVerz1 & "\" & Patch)) Then
  498.                   PatchListe = PatchListe & "<DIV style=" & Chr(34) & "font-size=12; color=white; font-family=Tahoma,Verdana,Arial,Geneva" & Chr(34) & ">" & Patch & "</DIV>"
  499.                   Patches.Writeline Zeile
  500.                   n = n+1
  501.                 elseif (myfiles.FileExists(DownloadVerz1 & "\" & Patch)) Then
  502.                   Set F = MyFiles.GetFile(DownloadVerz1 & "\" & Patch)
  503.                   DatSize = F.Size
  504.                   if DatSize = 0 then
  505.                        ret = Myfiles.DeleteFile(F, True)
  506.                        PatchListe = PatchListe & "<DIV style=" & Chr(34) & "font-size=12; color=white; font-family=Tahoma,Verdana,Arial,Geneva" & Chr(34) & ">" & Patch & "</DIV>"
  507.                       Patches.Writeline Zeile
  508.                       n = n+1
  509.                   end if
  510.                 end if
  511.             else
  512.                  Set F = MyFiles.GetFile(DownloadVerz & "\" & Patch)
  513.                  DatSize = F.Size
  514.                  if DatSize = 0 then
  515.                   ret = Myfiles.DeleteFile(F, True)
  516.                   PatchListe = PatchListe & "<DIV style=" & Chr(34) & "font-size=12; color=white; font-family=Tahoma,Verdana,Arial,Geneva" & Chr(34) & ">" & Patch & "</DIV>"
  517.                   Patches.Writeline Zeile
  518.                   n = n+1
  519.                  end if
  520.             End If    
  521.         loop until DownloadUrls.AtEndOfStream = True
  522.         if n = 1 then
  523.             gram = "Byla nalezena aktualizace, kterß ve slo₧ce se sta₧en²mi aktualizacemi jeÜt∞ chybφ. "
  524.         else
  525.             gram = "Bylo nalezeno(y) " & n & " zßplat(y), kterΘ ve slo₧ce se sta₧en²mi aktualizacemi jeÜt∞ chybφ. "
  526.         end if
  527.         
  528.         PatchListe = PatchListe & "<DIV style=" & Chr(34) & "font-size=12; color=yellow; font-family=Tahoma,Verdana,Arial,Geneva" & Chr(34) & "><HR>" & gram & Now & "</DIV></br>"
  529.         Patches.Close
  530.         DownloadUrls.Close
  531.         document.all.TheFrame.innerHTML = PatchListe
  532.         if n > 0 then document.all.item("loadme").Disabled=False
  533.         
  534.         myfiles.DeleteFile Pfad & "\mssecure.bat"
  535.         myfiles.DeleteFile Pfad & "\downloadurls.txt"
  536.         myfiles.DeleteFile Pfad & "\msiupd.bat"
  537.         myfiles.DeleteFile Pfad & "\xmlupd.bat"
  538.         myfiles.DeleteFile Pfad & "\wuaupd.bat"
  539.         myfiles.DeleteFile Pfad & "\extract.bat"
  540.         
  541. end Sub
  542. '==========================================================================
  543. Function mbsa2check(Clipfad, catPfad, check)
  544.         
  545.         ReportFile = Pfad & "\DownloadUrls.txt"  
  546.         sXPath = "//UpdateData"
  547.         sw = "/xmlout /catalog wsusscan.cab /unicode > mbsareslt.xml"
  548.  
  549.         Set mbsa2check = myfiles.OpenTextFile(Pfad & "\mbsa2check.bat", 2, True)
  550.         if Winvers = "XP" then
  551.             mbsa2check.writeline "sc.exe config lanmanworkstation start= demand"
  552.             mbsa2check.writeline "sc.exe start lanmanworkstation"
  553.             mbsa2check.writeline "sc.exe config lanmanserver start= auto"
  554.             mbsa2check.writeline "sc.exe start lanmanserver"
  555.             mbsa2check.writeline "sc.exe config wuauserv start= auto"
  556.             mbsa2check.writeline "sc.exe start wuauserv"
  557.             mbsa2check.writeline "ping.exe 127.0.0.1"
  558.         else
  559.           mbsa2check.writeline "net.exe start wuauserv"
  560.           mbsa2check.writeline "ping.exe 127.0.0.1"
  561.         end if
  562.         mbsa2check.writeline "cd /d " & chr(34) & Pfad & chr(34)
  563.         mbsa2check.writeline "mbsacli.exe " & sw
  564.         mbsa2check.close
  565.         ret = myshell.run("cmd.exe /c " & Chr(34) & Pfad & "\mbsa2check.bat" & Chr(34), 8, True)
  566.  
  567.         oXMLDoc.SetProperty "SelectionLanguage", "XPath"   
  568.         oXMLDoc.Async = False  
  569.         oXMLDoc.validateOnParse=False
  570.         oXMLDoc.Load(Pfad & "\mbsareslt.xml")  
  571.  
  572.         If (oXMLDoc.parseError.errorCode <> 0) Then
  573.              Set oErr = oXMLDoc.ParseError
  574.              MsgBox "Nemohu otev°φt soubor " & Pfad & "\mbsareslt.xml. Chyba: " & oErr.Reason, 16, "Chyba"
  575.              Exit function
  576.         End If
  577.   
  578.         
  579.           dicElements.CompareMode = vbTextCompare    
  580.         Set oNodes = oXMLDoc.DocumentElement.SelectNodes(sXPath)   
  581.         On Error Resume Next  
  582.         For Each oElement in oNodes   
  583.             sGUID = ""  ' init value   
  584.             sGUID = oElement.getAttribute("GUID") 
  585.             If Not dicElements.Exists(sGUID) Then   
  586.                 sKBID = "": sBulletinID = "": iType = "": iSeverity = ""  
  587.                 bIsInstalled = "": bRestartRequired = "": sTitle = ""  
  588.                 sDownloadURL = "": sType = "": sSeverity = ""  
  589.                 sKBID = oElement.getAttribute("KBID")  
  590.                 sBulletinID = oElement.getAttribute("BulletinID")  
  591.                 iType = CInt(oElement.getAttribute("Type"))  
  592.     
  593.                 Select Case iType  
  594.                 Case 1  
  595.                     sType = "Aktualizace"  
  596.                 Case 2  
  597.                     sType = "Service Pack"  
  598.                 Case 3  
  599.                     sType = "Update Rollup"  
  600.                 End Select  
  601.   
  602.                 iSeverity =  CInt(oElement.getAttribute("Severity"))  
  603.     
  604.                 Select Case iSeverity  
  605.                 Case 0  
  606.                     sSeverity = "(nehodnoceno)"  
  607.                 Case 1  
  608.                     sSeverity = "Nφzkß"  
  609.                 Case 2  
  610.                     sSeverity = "St°ednφ"  
  611.                 Case 3  
  612.                     sSeverity = "Vysokß"  
  613.                 Case 4  
  614.                     sSeverity = "Kritickß"  
  615.                 End Select  
  616.     
  617.                 bIsInstalled = CBool(oElement.getAttribute("IsInstalled"))  
  618.                 bRestartRequired = CBool(oElement.getAttribute("RestartRequired"))  
  619.                 sTitle = oElement.selectSingleNode("Title").text    
  620.                 sDownloadURL = oElement.selectSingleNode("References/DownloadURL").text  
  621.   
  622.                 dicElements.Add sGUID, Array(sKBID, sBulletinID, sType, sSeverity, bIsInstalled, bRestartRequired, sTitle, sDownloadURL)  
  623.             End If  
  624.         Next  
  625.         myfiles.DeleteFile Pfad & "\mbsareslt.xml"
  626.         myfiles.DeleteFile Pfad & "\mbsa2check.bat"
  627.         On Error Goto 0  
  628.  
  629.         If dicElements.Count = 0 Then  
  630.             MsgBox "Nebyly nalezeny ₧ßdnΘ aktualizace" 
  631.         Else   
  632.             Set DwUrls = myfiles.CreateTextFile(myshell.ExpandEnvironmentStrings(ReportFile), -1, 0)  
  633.             if check = "load" then
  634.                 ListElements (True)  
  635.                 ListElements (False)  
  636.                 DwUrls.Close  
  637.             elseif check = "install" then
  638.                 ListElements (False)
  639.                 DwUrlsf.close
  640.             end if
  641.         End If  
  642. end function
  643.  
  644. '==========================================================================
  645.  
  646. function ListElements(ByVal bInstallStatus) 
  647.         For Each sDicElement In dicElements 
  648.             If dicElements.Item(sDicElement)(4) = bInstallStatus Then
  649.                 if instr(1, lcase(dicElements.Item(sDicElement)(7)), "xpsp2_ac8", 1) = 0 and instr(1, lcase(dicElements.Item(sDicElement)(7)), "linkid=", 1) = 0 then 
  650.                     If document.all.Item("Nonwin").Checked = False Then
  651.                         if instr(1, lcase(dicElements.Item(sDicElement)(7)), "/windows", 1) then
  652.                             DwUrls.WriteLine dicElements.Item(sDicElement)(7)
  653.                         end if
  654.                     else
  655.                         DwUrls.WriteLine dicElements.Item(sDicElement)(7)
  656.                     end if
  657.                 end if
  658.             End If  
  659.         Next  
  660. End function  
  661.  
  662. '==========================================================================
  663.  
  664. Function LoadIt
  665.         Loadit = "0"
  666.         on error resume next
  667.         Set mssecure = myfiles.OpenTextFile(Pfad & "\mssecure.bat", 2, True)
  668.         Befehl1 = Chr(34) & Pfad & "\wget.exe" & Chr(34) & " -nc " & Parameter & proxparms & "http://go.microsoft.com/fwlink/?LinkId=39043" & " --directory-prefix=" & Chr(34) & Pfad & Chr(34)
  669.         Befehl2 = Chr(34) & Pfad & "\wget.exe" & Chr(34) & " " & Parameter & proxparms & "http://download.microsoft.com/download/3/f/d/3fd1a09d-af15-4ab7-a554-0ac6c1e76c16/MBSASetup-EN.msi" & " --directory-prefix=" & Chr(34) & Pfad & Chr(34)
  670.         Befehl3 = Chr(34) & Pfad & "\wget.exe" & Chr(34) & " " & Parameter & proxparms & "http://www.myria.de/pcw/pcwPatchLoader-FAQ.htm" & " --directory-prefix=" & Chr(34) & Pfad & Chr(34)
  671.     Befehl4 = "cd /d " & chr(34) & Pfad & chr(34)
  672.         Befehl5 = "start /wait msiexec.exe /i " & "MBSASetup-en.msi /quiet"
  673.         Befehl6 = "del pcwPatchLoader-FAQ.htm"
  674.         
  675.         mssecure.Writeline Befehl1
  676.         mssecure.Writeline Befehl4
  677.         mssecure.Writeline Befehl6
  678.         mssecure.Writeline Befehl3
  679.         
  680.         clireg = myshell.Regread("HKEY_CLASSES_ROOT\MBSA.Report.Viewer\shell\open\command\")
  681.         If not (myfiles.FileExists(Pfad & "\wusscan.dll"))  and clireg = "" Then
  682.             mssecure.Writeline Befehl2
  683.             mssecure.Writeline Befehl5
  684.         End If
  685.         If not (myfiles.FileExists(Pfad & "\qchain.exe")) Then
  686.             msgbox "U obou nßsledujφcφ dialogov²ch oken stiskn∞te tlaΦφtko 'OK'"
  687.             Qchain1 = Chr(34) & Pfad & "\wget.exe" & Chr(34) & " " & Parameter & proxparms & "http://download.microsoft.com/download/9/5/2/952ac356-53cb-43a2-9c85-54b1262fca2c/Q815062_W2K_spl_X86_EN.exe" & " --directory-prefix=" & Chr(34) & Pfad & Chr(34)
  688.             Qchain15 = "cd /d " & chr(34) & Pfad & chr(34)
  689.             Qchain2 = "start /wait Q815062_W2K_spl_X86_EN.exe"
  690.             Qchain3 = "del /q " & chr(34) & Pfad & "\Q815062_W2K_spl_X86_EN.exe" & chr(34)
  691.             mssecure.Writeline Qchain1
  692.             mssecure.Writeline Qchain15
  693.             mssecure.Writeline Qchain2
  694.             mssecure.Writeline Qchain3
  695.         end if
  696.         mssecure.close
  697.         SecLoad = myshell.run("cmd.exe /c " & Chr(34) & Pfad & "\mssecure.bat" & Chr(34), 1, True)
  698.         If not (myfiles.FileExists(Pfad & "\wsusscan.cab"))  Then
  699.             msgbox "Nepoda°ilo se p°ipojit k serveru Microsoftu. Zkontrolujte, zda je vßÜ poΦφtaΦ p°ipojen k internetu. Pokud ne, pak jej p°ipojte.", 16, "Chyba"
  700.             Loadit = "10"
  701.             myfiles.DeleteFile Pfad & "\mssecure.bat"
  702.             exit function
  703.         end if
  704.         If not (myfiles.FileExists(Pfad & "\wusscan.dll"))  Then
  705.             clireg = myshell.Regread("HKEY_CLASSES_ROOT\MBSA.Report.Viewer\shell\open\command\")
  706.             if not clireg = "" then
  707.                 fold = instrRev(clireg, "\", -1,1)
  708.                 if mid(clireg, 1, 1) = chr(34) then
  709.                     mbsapfad = Mid(clireg, 2, fold-2)
  710.                 else
  711.                     mbsapfad = Mid(clireg, 1, fold-1)
  712.                 end if
  713.                 
  714.                 myfiles.CopyFile mbsapfad & "\mbsacli.exe", pfad & "\mbsacli.exe", True
  715.                 myfiles.CopyFile mbsapfad & "\wusscan.dll", pfad & "\wusscan.dll", True
  716.                 
  717.                 If (myfiles.FileExists(Pfad & "\MBSASetup-en.msi"))  Then
  718.                     Set mssecure = myfiles.OpenTextFile(Pfad & "\mssecure.bat", 2, True)
  719.                     Befehl1 = "cd /d " & chr(34) & Pfad & chr(34)
  720.                     Befehl2 = "start /wait msiexec.exe /x " & "MBSASetup-en.msi /quiet"
  721.                     Befehl3 = "del /q " & Chr(34) & Pfad & "\MBSASetup-en.msi" & Chr(34)
  722.                     mssecure.Writeline Befehl1
  723.                     mssecure.Writeline Befehl2
  724.                     mssecure.Writeline Befehl3
  725.                     mssecure.close
  726.                     SecLoad = myshell.run("cmd.exe /c " & Chr(34) & Pfad & "\mssecure.bat" & Chr(34), 1, True)
  727.                 end if
  728.             else
  729.                 msgbox "Baseline Security Analyzer 2.0 se nepoda°ilo nainstalovat.", 16, "Chyba"
  730.                 exit Function
  731.             end if
  732.         end if
  733.         LoadIt = "0"
  734. End Function    
  735.  
  736. '==========================================================================
  737.     
  738. Sub SubSave
  739.   on error resume next
  740.         If document.all.Item("SPLader").Checked Then
  741.             LoadSP
  742.         end if
  743.         
  744.     
  745.         DownloadVerz = OrdnerInput.Value
  746.         Loader = myshell.run(Chr(34) & Pfad & "\wget.exe" & Chr(34) & " " & Parameter & proxparms & "--input-file=" & Chr(34) & Pfad & "\Patches.txt" & Chr(34) & " --directory-prefix=" & Chr(34) & DownloadVerz & Chr(34), 1, True)
  747.         myfiles.DeleteFile Pfad & "\Patches.txt"
  748.         PatchListe = "<DIV style=" & Chr(34) & "font-size=12; color=yellow; font-family=Tahoma,Verdana,Arial,Geneva" & Chr(34) & "><HR>Stahovßnφ dokonΦeno.  " & Now & "</DIV></br>"
  749.     document.all.TheFrame.innerHTML = PatchListe
  750.         document.all.item("Install").Disabled=False
  751.         low(loadme)
  752.         document.all.item("loadme").Disabled=True
  753. End Sub
  754.  
  755. '==========================================================================
  756.  
  757. Function LoadSP
  758.         on error resume next
  759.         DownloadVerz = OrdnerInput.Value
  760.         DownloadVerz1 = OrdnerInput1.Value
  761.         If Winvers = "XP" then
  762.             'XP-SP2
  763.             If (myfiles.FileExists(DownloadVerz & "\xpsp2.exe")) Then
  764.                 myfiles.Movefile DownloadVerz & "\xpsp2.exe", DownloadVerz & "\WindowsXP-KB835935-SP2-CSY.exe"
  765.                 exit function
  766.             elseif (myfiles.FileExists(DownloadVerz & "\WindowsXP-KB835935-SP2-CSY.exe")) Then
  767.                 exit function
  768.             elseIf (myfiles.Folderexists(DownloadVerz1)) and (myfiles.FileExists(DownloadVerz1 & "\xpsp2.exe")) Then
  769.                 myfiles.Movefile DownloadVerz & "\xpsp2.exe", DownloadVerz1 & "\WindowsXP-KB835935-SP2-CSY.exe"
  770.                 exit function
  771.             elseif (myfiles.Folderexists(DownloadVerz1)) and (myfiles.FileExists(DownloadVerz1 & "\WindowsXP-KB835935-SP2-CSY.exe")) Then
  772.                 exit function
  773.             end if
  774.             URL = "http://download.microsoft.com/download/2/8/0/28001168-047a-4f33-bcac-e343824afe79/WindowsXP-KB835935-SP2-CSY.exe"
  775.         elseif Winvers ="2K" then
  776.             '2K-SP4
  777.             URL = "http://download.microsoft.com/download/f/d/2/fd2b1d2a-16c8-43ba-b805-518dbff8a438/w2ksp4_cs.exe"
  778.         elseif Winvers = "23K" then
  779.             '2K3-SP1
  780.             URL = "http://download.microsoft.com/download/6/a/d/6ad55c98-6885-4189-bf83-88951af64529/WindowsServer2003-KB889101-SP1-x86-CSY.exe"
  781.         end if
  782.         Befehl1 = Chr(34) & Pfad & "\wget.exe" & Chr(34) & " " & Parameter & proxparms & " -nc " & URL & " --directory-prefix=" & Chr(34) & DownloadVerz & Chr(34)
  783.         Loader = myshell.run(Befehl1, 1, True)
  784. End Function
  785.  
  786. '==========================================================================
  787.  
  788. Sub InstallThem
  789.         reboot = 0
  790.         DownloadVerz = OrdnerInput.Value
  791.         DownloadVerz1 = OrdnerInput1.Value
  792.         on error resume next
  793.         Patchliste = ""
  794.         document.all.TheFrame.innerHTML = "Probφhß kontrola..."
  795.         splevel = myshell.Regread("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Windows\CSDVersion")
  796.         if Winvers = "XP" and splevel < 512 then
  797.             If not (myfiles.FileExists(DownloadVerz & "\WindowsXP-KB835935-SP2-CSY.exe")) Then
  798.               If not (myfiles.FileExists(DownloadVerz1 & "\WindowsXP-KB835935-SP2-CSY.exe")) Then
  799.                   Msgbox "Stßhn∞te si prosφm nejd°φve Service Pack 2, nainstalujte jej a potΘ spus¥te skript znovu."
  800.                   exit sub
  801.                 else
  802.                   ret = Msgbox("Service Pack 2 je nutno instalovat zvlßÜ¥. Mß se spustit jeho instalace nynφ?", vbYESNO, "Instalace SP2")
  803.                   if ret = vbYES then myshell.run chr(34) & DownloadVerz1 & "\WindowsXP-KB835935-SP2-CSY.exe" & chr(34)
  804.                   exit sub
  805.                 end if
  806.             else
  807.                 ret = Msgbox("Service Pack 2 je nutno instalovat zvlßÜ¥. Mß se spustit jeho instalace nynφ?", vbYESNO, "Instalace SP2")
  808.                 if ret = vbYES then myshell.run chr(34) & DownloadVerz & "\WindowsXP-KB835935-SP2-CSY.exe" & chr(34)
  809.                 exit sub
  810.             end if
  811.         elseif Winvers = "2K" and splevel < 1024 then
  812.             If not (myfiles.FileExists(DownloadVerz & "\w2ksp4_cs.exe")) Then
  813.                 If not (myfiles.FileExists(DownloadVerz1 & "\W2KSP4_cs.EXE")) Then
  814.                   Msgbox "Stßhn∞te si prosφm nejd°φve Service Pack 4, nainstalujte jej a potΘ spus¥te skript znovu."
  815.                   exit sub
  816.               else
  817.                   ret = Msgbox("Service Pack 4 je nutno instalovat zvlßÜ¥. Mß se spustit jeho instalace nynφ?", vbYESNO, "Instalace SP4 ")
  818.                   if ret = vbYES then myshell.run chr(34) & DownloadVerz1 & "\W2KSP4_CS.EXE" & chr(34)
  819.                   exit sub
  820.               end if
  821.             else
  822.                 ret = Msgbox("Service Pack 4 je nutno instalovat zvlßÜ¥. Mß se spustit jeho instalace nynφ?", vbYESNO, "Instalace SP4")
  823.                 if ret = vbYES then myshell.run chr(34) & DownloadVerz & "\W2KSP4_CS.EXE" & chr(34)
  824.                 exit sub
  825.             end if
  826.         elseif Winvers = "23K" and splevel < 256 then
  827.             If not (myfiles.FileExists(DownloadVerz & "\WindowsServer2003-KB889101-SP1-x86-CSY.exe")) Then
  828.                 If not (myfiles.FileExists(DownloadVerz1 & "\WindowsServer2003-KB889101-SP1-x86-CSY.exe")) Then
  829.                   Msgbox "Stßhn∞te si prosφm nejd°φve Service Pack 1, nainstalujte jej a potΘ spus¥te skript znovu."
  830.                   exit sub
  831.               else
  832.                   ret = Msgbox("Service Pack 1 je nutno instalovat zvlßÜ¥. Mß se spustit jeho instalace nynφ?", vbYESNO, "Instalace SP1")
  833.                   if ret = vbYES then myshell.run chr(34) & DownloadVerz1 & "\WindowsServer2003-KB889101-SP1-x86-CSY.exe" & chr(34)
  834.                   exit sub
  835.               end if
  836.             else
  837.                 ret = Msgbox("Service Pack 1 je nutno instalovat zvlßÜ¥. Mß se spustit jeho instalace nynφ?", vbYESNO, "Instalace SP1")
  838.                 if ret = vbYES then myshell.run chr(34) & DownloadVerz & "\WindowsServer2003-KB889101-SP1-x86-CSY.exe" & chr(34)
  839.                 exit sub
  840.             end if
  841.         end if
  842.         
  843.         
  844.         if not (myfiles.FileExists(windir & "\extract.exe")) then
  845.           Set extractit = myfiles.OpenTextFile(Pfad & "\extract.bat", 2, True)
  846.           Befehl1 = "cd /d " & chr(34) & pfad & chr(34) 
  847.             Befehl2 = "start /wait extract.msi /passive"
  848.             Befehl3 = "copy " & chr(34) & progfilesdir & "\Resource Kit\extract.exe" & chr(34) & " " & windir
  849.         
  850.           extractit.writeline Befehl1
  851.           extractit.writeline Befehl2
  852.           extractit.writeline Befehl3
  853.           
  854.           extractit.close
  855.           ret = myshell.run("cmd /c " & Chr(34) & Pfad & "\extract.bat" & Chr(34), 1, True)
  856.         end if
  857.         if not (myfiles.FileExists(windir & "\extract.exe")) then
  858.           msgbox "╪i∩te se pokyny pr∙vodce instalacφ systΘmu a program nainstalujte do vßmi zadanΘ cφlovΘ slo₧ky"
  859.           myshell.run pfad & "extract.msi", 1, True
  860.           myfiles.CopyFile progfilesdir & "Resource Kit\extract.exe", windir, True
  861.         end if
  862.         
  863.         
  864.         wua1 = left(myfiles.GetFileVersion(windir & "\System32\wuauclt.exe"),1)
  865.         wua3 = mid(myfiles.GetFileVersion(windir & "\System32\wuauclt.exe"), 3, 1)
  866.         wuup = 0
  867.         
  868.         if wua1 < "5" then
  869.             wuup = "1"
  870.         elseif wua1 = "5" and wua3 < "8" then
  871.             wuup = "1"
  872.         end if
  873.         
  874.         
  875.         if wuup = "1" then
  876.             Set wuaupd = myfiles.OpenTextFile(Pfad & "\wuaupd.bat", 2, True)
  877.             Befehl1 = "cd /d " & chr(34) & pfad & chr(34) 
  878.             Befehl2 = "start /wait WindowsUpdateAgent20-x86.exe -q"
  879.             wuaupd.writeline Befehl1
  880.             wuaupd.writeline Befehl2
  881.             wuaupd.close
  882.             ret = myshell.run("cmd /c " & Chr(34) & Pfad & "\wuaupd.bat" & Chr(34), 1, True)
  883.         end if
  884.         
  885.         
  886.         msiverl = left(myfiles.GetFileVersion(windir & "\System32\msiexec.exe"),1)
  887.         msiverr = mid(myfiles.GetFileVersion(windir & "\System32\msiexec.exe"), 3, 1)
  888.         msiver = 0
  889.         if msiverl < 3 then
  890.             msiver = 1
  891.         elseif msiverl = 3 and msiverr < 1 then
  892.             msiver = 1
  893.         elseif msiverl = 3 and msiverr = "" then
  894.             msiver = 1
  895.         end if
  896.         if msiver = 1 then
  897.             Set msiupd = myfiles.OpenTextFile(Pfad & "\msiupd.bat", 2, True)
  898.             Befehl1 = "cd /d " & chr(34) & pfad & chr(34) 
  899.             Befehl2 = "WindowsInstaller-KB893803-v2-x86.exe -z -m"
  900.             msiupd.writeline Befehl1
  901.             msiupd.writeline Befehl2
  902.             msiupd.close
  903.             ret = myshell.run("cmd.exe /c " & Chr(34) & Pfad & "\msiupd.bat" & Chr(34), 1, True)
  904.             reboot = 1
  905.         end if
  906.         
  907.         
  908.         msx = 0
  909.         for d = 4 to 20
  910.         if (myfiles.FileExists(windir & "\System32\msxml" & d & ".dll")) Then
  911.             msx = 1
  912.         end if
  913.         next
  914.         
  915.         if msx = 0 then
  916.             Set xmlupd = myfiles.OpenTextFile(Pfad & "\xmlupd.bat", 2, True)
  917.             Befehl1 = "cd /d " & chr(34) & pfad & chr(34)
  918.             Befehl2 = "start /wait msiexec.exe /i msxml6.msi /quiet"
  919.             Befehl3 = "start /wait msiexec.exe /i msxml6_x64.msi /quiet"
  920.             xmlupd.writeline Befehl1
  921.             xmlupd.writeline Befehl2
  922.             xmlupd.writeline Befehl3
  923.             xmlupd.close
  924.             ret = myshell.run("cmd.exe /c " & Chr(34) & Pfad & "\xmlupd.bat" & Chr(34), 1, True)
  925.         end if
  926.         
  927.         
  928.         if reboot = 1 then
  929.             ret = Msgbox("Do systΘmu byl nainstalovßn Windows Installer 3.1. Aby skript sprßvn∞ fungoval, je nutno restartovat poΦφtaΦ. Po restartu poΦφtaΦe spus¥te skript znovu." & vbcr & vbcr & "Restartovat nynφ", vbYesNo + vbExclamation, "Je nutno restartovat poΦφtaΦ")
  930.             if ret = vbYes then
  931.                 Set Sysess = GetObject("winmgmts:{impersonationLevel=impersonate,(Shutdown)}").ExecQuery("select * from Win32_OperatingSystem where Primary=true")
  932.                 For Each sys In Sysess
  933.                     Sys.Win32Shutdown 6
  934.                     exit sub
  935.                 Next
  936.             end if
  937.         end if    
  938.         
  939.         mbsa2check Clipfad, catPfad, "install"
  940.         
  941.         Set ToInst = myfiles.OpenTextFile(Pfad & "\DownloadUrls.txt", 1, False)
  942.         Set InstTo = myfiles.OpenTextFile(Pfad & "\Install.Bat", 2, True)
  943.         
  944.         n = 0
  945.         x = 0
  946.         Do
  947.             Zeile = ToInst.Readline
  948.             Anfang = InStrRev(lcase(Zeile), "/", -1, 1)
  949.             If not Anfang = 0 Then
  950.                 PName = Mid(Zeile, Anfang+1, len(Zeile))
  951.                 If (myfiles.FileExists(DownloadVerz & "\" & PName)) and Lcase(Mid(PName, 1, 7)) = "windows" then
  952.                     InstTo.Writeline chr(34) & OrdnerInput.Value & "\" & Pname & chr(34) & " -z -m"
  953.                     PatchListe = PatchListe & "<DIV style=" & Chr(34) & "font-size=12; color=white; font-family=Tahoma,Verdana,Arial,Geneva" & Chr(34) & ">" & Pname & "</DIV>"
  954.                     n = n+1
  955.                 elseIf (myfiles.FileExists(DownloadVerz1 & "\" & PName)) and Lcase(Mid(PName, 1, 7)) = "windows" then
  956.                     InstTo.Writeline chr(34) & OrdnerInput1.Value & "\" & Pname & chr(34) & " -z -m"
  957.                     PatchListe = PatchListe & "<DIV style=" & Chr(34) & "font-size=12; color=white; font-family=Tahoma,Verdana,Arial,Geneva" & Chr(34) & ">" & Pname & "</DIV>"
  958.                     n = n+1
  959.         elseif (myfiles.FileExists(DownloadVerz & "\" & PName)) and Lcase(Mid(PName, 1, 7)) <> "windows" and lcase(myfiles.GetExtensionName(DownloadVerz & "\" & PName)) = "exe" then
  960.                     InstTo.Writeline chr(34) & OrdnerInput.Value & "\" & Pname & chr(34) & " /Q"
  961.                   PatchListe = PatchListe & "<DIV style=" & Chr(34) & "font-size=12; color=white; font-family=Tahoma,Verdana,Arial,Geneva" & Chr(34) & ">" & Pname & "</DIV>"
  962.           n = n+1
  963.         elseif (myfiles.FileExists(DownloadVerz1 & "\" & PName)) and Lcase(Mid(PName, 1, 7)) <> "windows" and lcase(myfiles.GetExtensionName(DownloadVerz1 & "\" & PName)) = "exe" then
  964.                     InstTo.Writeline chr(34) & OrdnerInput1.Value & "\" & Pname & chr(34) & " /Q"
  965.                   PatchListe = PatchListe & "<DIV style=" & Chr(34) & "font-size=12; color=white; font-family=Tahoma,Verdana,Arial,Geneva" & Chr(34) & ">" & Pname & "</DIV>"
  966.           n = n+1
  967.                 elseif (myfiles.FileExists(DownloadVerz & "\" & PName)) and lcase(myfiles.GetExtensionName(DownloadVerz & "\" & PName)) = "cab" then
  968.                   msp = Mid(Pname, 1, instr(1, Pname, "_", 1)-1) & ".msp"
  969.                   InstTo.Writeline "extract.exe /y " & chr(34) & OrdnerInput.Value & "\" & Pname & chr(34) & " " & chr(34) & OrdnerInput.Value & "\" & msp & chr(34)
  970.                   uliste = msp & ";" & uliste
  971.                   PatchListe = PatchListe & "<DIV style=" & Chr(34) & "font-size=12; color=white; font-family=Tahoma,Verdana,Arial,Geneva" & Chr(34) & ">" & Pname & "</DIV>"
  972.           n = n+1
  973.         elseif (myfiles.FileExists(DownloadVerz1 & "\" & PName)) and lcase(myfiles.GetExtensionName(DownloadVerz1 & "\" & PName)) = "cab" then
  974.                   msp = Mid(Pname, 1, instr(1, Pname, "_", 1)-1) & ".msp"
  975.                   InstTo.Writeline "extract.exe /y " & chr(34) & OrdnerInput1.Value & "\" & Pname & chr(34) & " " & chr(34) & OrdnerInput1.Value & "\" & msp & chr(34)
  976.                   uliste = msp & ";" & uliste
  977.                   PatchListe = PatchListe & "<DIV style=" & Chr(34) & "font-size=12; color=white; font-family=Tahoma,Verdana,Arial,Geneva" & Chr(34) & ">" & Pname & "</DIV>"
  978.           n = n+1
  979.                 End If
  980.             end if
  981.         loop until ToInst.AtEndOfStream = True
  982.         if n = 1 then
  983.            gram = "Byla nalezena aktualizace, kterß ve slo₧ce se sta₧en²mi aktualizacemi jeÜt∞ chybφ. "
  984.         else
  985.             gram = "Bylo nalezeno(y) " & n & " zßplat(y), kterΘ ve slo₧ce se sta₧en²mi aktualizacemi jeÜt∞ chybφ. "
  986.         end if
  987.         
  988.         PatchListe = PatchListe & "<DIV style=" & Chr(34) & "font-size=12; color=yellow; font-family=Tahoma,Verdana,Arial,Geneva" & Chr(34) & "><HR>" & gram & Now & "</DIV></br>"
  989.         Patches.Close
  990.         ToInst.Close
  991.         document.all.TheFrame.innerHTML = PatchListe
  992.         InstTo.Writeline chr(34) & Pfad & "\Qchain.exe" & chr(34)
  993.         if not uliste = "" then
  994.           uliste = Mid(uliste, 1, len(uliste)-1)
  995.           InstTo.WriteLine "cd /d " & chr(34) & OrdnerInput.Value & chr(34)
  996.       InstTo.Writeline "start /wait msiexec /update " & uliste
  997.           InstTo.Writeline "del *.msp"
  998.         end if
  999.         InstTo.Close
  1000.         if n = 0 then 
  1001.                 exit sub
  1002.         end if
  1003.         ret = Msgbox("Chcete nynφ aktualizace nainstalovat?", vbYESNO, "Instalace aktualizacφ")
  1004.         if ret = vbYES Then
  1005.           document.all.TheFrame.innerHTML = ""
  1006.             Inst = myshell.run("cmd.exe /c " & Chr(34) & Pfad & "\Install.Bat" & Chr(34), 8, True)
  1007.       PatchListe = "<DIV style=" & Chr(34) & "font-size=12; color=yellow; font-family=Tahoma,Verdana,Arial,Geneva" & Chr(34) & "><HR>Instalace je u konce. Restartujte nynφ poΦφtaΦ. Pokud se b∞hem instalace vyskytla n∞jakß chyba, spus¥te instalaci zßplat ruΦn∞.</DIV></br>"
  1008.         end if
  1009.         document.all.TheFrame.innerHTML = PatchListe
  1010.         myfiles.DeleteFile Pfad & "\downloadurls.txt"
  1011.         myfiles.DeleteFile Pfad & "\Install.bat"
  1012.         myfiles.DeleteFile Pfad & "\msiupd.bat"
  1013.         myfiles.DeleteFile Pfad & "\xmlupd.bat"
  1014.         myfiles.DeleteFile Pfad & "\wuaupd.bat"
  1015.         myfiles.DeleteFile Pfad & "\extract.bat"
  1016. end Sub
  1017.  
  1018. '==========================================================================
  1019.  
  1020.     Sub SubActProx
  1021.         If document.all.Item("Proxy").Checked Then
  1022.             document.all.Item("Proxy").Checked = true
  1023.             document.all.item("Pserver").Disabled=false
  1024.             document.all.item("Puser").Disabled=false
  1025.             document.all.item("Ppass").Disabled=false
  1026.         else
  1027.             document.all.Item("Proxy").Checked = false
  1028.             document.all.item("Pserver").Disabled=true
  1029.             document.all.item("Puser").Disabled=true
  1030.             document.all.item("Ppass").Disabled=true
  1031.         end if
  1032.     End Sub
  1033.     
  1034. '==========================================================================
  1035.  
  1036.     Sub SubClear(ID)
  1037.         document.all.item(ID).Value = ""
  1038.     End Sub
  1039.  
  1040. '==========================================================================
  1041.  
  1042.     Sub SubQuit
  1043.         Set myfiles        = Nothing
  1044.         Set AppShell         = Nothing
  1045.         Set myshell        = Nothing
  1046.         Window.Close
  1047.     End Sub
  1048.     
  1049. '==========================================================================
  1050.  
  1051.     Sub SubHelp
  1052.       document.all.TheFrame.innerHTML = ""
  1053.     Set Helpfile = myfiles.Opentextfile(Pfad & "\pcwPatchLoader-FAQ.htm", 1, False)
  1054.     FullHelp = Helpfile.Readall
  1055.     HelpFile.Close
  1056.     document.all.TheFrame.innerHTML = FullHelp
  1057.     End Sub
  1058.  
  1059. '==========================================================================
  1060.   Function high(objekt) 
  1061.      objekt.style.background ="#00FF00"
  1062.      objekt.filters.alpha.finishopacity = 100
  1063.      objekt.filters.alpha.opacity = 100
  1064.     End Function
  1065.  
  1066. '==========================================================================
  1067.  
  1068.   function low(objekt)
  1069.      objekt.style.background ="#008000"
  1070.      objekt.filters.alpha.opacity = 100
  1071.      objekt.filters.alpha.finishopacity = 40
  1072.     End Function
  1073.  
  1074. '==========================================================================
  1075.  
  1076.   Sub SubDelIt(Nummer)
  1077.     if Nummer = 0 then
  1078.       OrdnerInput.Value = ""
  1079.       myshell.Regwrite "HKEY_LOCAL_MACHINE\Software\PC-WELT\pcwPatchloader\", ""
  1080.     elseif Nummer = 1 then
  1081.       OrdnerInput1.Value = ""
  1082.       myshell.Regwrite "HKEY_LOCAL_MACHINE\Software\PC-WELT\pcwPatchloader\altziel", ""
  1083.     end if
  1084.     if OrdnerInput.Value = "" and OrdnerInput1.Value = "" then
  1085.             document.all.item("Install").Disabled=True
  1086.             document.all.item("checkit").Disabled=True
  1087.             document.all.item("loadme").Disabled=True
  1088.         elseif OrdnerInput.Value = "" and not OrdnerInput1.Value = "" then
  1089.             Set Ladeord1 = myfiles.GetFolder(OrdnerInput1.Value)
  1090.             if Ladeord1.size = 0 Then 
  1091.                 document.all.item("Install").Disabled=True
  1092.                 document.all.item("checkit").Disabled=True
  1093.                 document.all.item("loadme").Disabled=True
  1094.             else
  1095.                 document.all.item("Install").Disabled=False
  1096.                 document.all.item("checkit").Disabled=True
  1097.                 document.all.item("loadme").Disabled=True
  1098.             end if
  1099.         elseif OrdnerInput1.Value = "" and not OrdnerInput.Value = "" then
  1100.           Set Ladeord = myfiles.GetFolder(OrdnerInput.Value)
  1101.             if Ladeord.size = 0 Then 
  1102.                 document.all.item("Install").Disabled=True
  1103.                 document.all.item("loadme").Disabled=True
  1104.             else
  1105.                 document.all.item("Install").Disabled=False
  1106.                 document.all.item("loadme").Disabled=True
  1107.             end if
  1108.         else
  1109.           Set Ladeord = myfiles.GetFolder(OrdnerInput.Value)
  1110.           Set Ladeord1 = myfiles.GetFolder(OrdnerInput1.Value)
  1111.             if Ladeord.size = 0 and Ladeord1.size = 0 Then 
  1112.                 document.all.item("Install").Disabled=True
  1113.                 document.all.item("loadme").Disabled=True
  1114.             else
  1115.                 document.all.item("Install").Disabled=False
  1116.                 document.all.item("loadme").Disabled=True
  1117.             end if
  1118.         end if
  1119.     End Sub
  1120.     
  1121. '==========================================================================
  1122.  
  1123.   Function LoadAct
  1124.     if    document.all.Item("SPLader").Checked = true then
  1125.       document.all.item("loadme").Disabled=False
  1126.     else
  1127.       document.all.item("loadme").Disabled=True
  1128.     end if
  1129.   End function
  1130.     
  1131. '==========================================================================
  1132.  
  1133. </SCRIPT>
  1134.  
  1135.  <BODY SCROLL="no" ONLOAD="SubInitFenster">
  1136. <TABLE WIDTH=100% BORDER=0 CELLPADDING=4 CELLSPACING=2>
  1137.     <TR>
  1138.         <TD WIDTH=100%>
  1139.             <b>Hlavnφ slo₧ka pro umφst∞nφ aktualizacφ:</b>
  1140.         </TD>
  1141.     </TR>
  1142.     <TR>
  1143.         <TD WIDTH=100%>
  1144.             <Input
  1145.               ID=OrdnerInput
  1146.               Class="Textbox"
  1147.         Type=text
  1148.               Value=""
  1149.               Size=100
  1150.               Name=Ziel
  1151.               Title="Vyberte slo₧ku, do nφ₧ budete chtφt stahovat aktualizace Windows" READONLY>
  1152.             
  1153.             <Input
  1154.               ID=Button
  1155.               Name=searchit
  1156.               Class="Button"
  1157.               Type="button"
  1158.               Value=">>"
  1159.               OnClick="SubBrowseQuelle('0')"
  1160.               onMouseOver="high(searchit)"
  1161.             onMouseOut="low(searchit)"
  1162.               Title="Vyberte cφlovou slo₧ku"
  1163.               Value="4">
  1164.           <Input
  1165.               ID=Button
  1166.               Name=delit
  1167.               Class="Button"
  1168.               Type="button"
  1169.               Value="X"
  1170.               OnClick="SubDelIt('0')"
  1171.               onMouseOver="high(delit)"
  1172.             onMouseOut="low(delit)"
  1173.               Title="Odstranit odkaz na slo₧ku"
  1174.               Value="4">
  1175.           </TD>
  1176.     </TR>
  1177.     <TR>
  1178.         <TD WIDTH=100%>
  1179.             <B>Nßhradnφ cφlovß slo₧ka pro umφst∞nφ aktualizacφ:</B>
  1180.         </TD>
  1181.     </TR>
  1182.     <TR>
  1183.         <TD WIDTH=100%>
  1184.             <Input
  1185.               ID=OrdnerInput1
  1186.               Class="Textbox"
  1187.         Type=text
  1188.               Value=""
  1189.               Size=100
  1190.               Name=Ziel
  1191.               Title="Pokud chcete, zvolte si nßhradnφ slo₧ku pro umφst∞nφ aktualizacφ Windows" READONLY>
  1192.             
  1193.             <Input
  1194.               ID=Button
  1195.               Name=searchit1
  1196.               Class="Button"
  1197.               Type="button"
  1198.               Value=">>"
  1199.               OnClick="SubBrowseQuelle('1')"
  1200.               onMouseOver="high(searchit1)"
  1201.             onMouseOut="low(searchit1)"
  1202.               Title="Vyberte si cφlovou slo₧ku"
  1203.               Value="4">
  1204.           <Input
  1205.               ID=Button
  1206.               Name=delit1
  1207.               Class="Button"
  1208.               Type="button"
  1209.               Value="X"
  1210.               OnClick="SubDelIt('1')"
  1211.               onMouseOver="high(delit1)"
  1212.             onMouseOut="low(delit1)"
  1213.               Title="Odstranit odkaz na slo₧ku"
  1214.               Value="4">
  1215.           </TD>
  1216.     </TR>
  1217.     <TR>
  1218.         <TD WIDTH=100%>
  1219.             <B>Seznam aktualizacφ:</B>
  1220.         </TD>
  1221.     </TR>
  1222.     <TR>
  1223.         <TD WIDTH=100%>
  1224.              <Span Class=Textbox Name=TheFrame id=TheFrame style="WIDTH: 600px; HEIGHT: 270px; overflow:auto"></Span>
  1225.          </TD>
  1226.     </TR>
  1227.         <TR>
  1228.         <TD WIDTH=100%>
  1229.             <INPUT
  1230.               Name=SPLader
  1231.               Type="checkbox"
  1232.               Title="Stahovat vΦetn∞ nejnov∞jÜφ verze Service Packu"
  1233.         onclick="LoadAct">
  1234.               
  1235.               <Input
  1236.               Class="Label"
  1237.         ID=SPlabel
  1238.               Type=text
  1239.               Value=""
  1240.               Size=100 READONLY>         
  1241.         </TD>
  1242.     </TR>
  1243.       
  1244.       <TR>
  1245.         <TD WIDTH=100%>
  1246.               <INPUT
  1247.               Name=Nonwin
  1248.               Type="checkbox"
  1249.               Title="Stahovat aktualizace i pro jinΘ aplikace" CHECKED>
  1250.               
  1251.               <Input
  1252.               ID=Nonlabel
  1253.               Class="Label"
  1254.         Type=text
  1255.               Value="Zφskat kritickΘ aktualizace i pro ostatnφ aplikace krom∞ Windows"
  1256.               Size=100 READONLY>
  1257.         
  1258.         </TD>
  1259.     </TR>
  1260.     </TR>
  1261.         <TR>
  1262.         <TD WIDTH=100%>
  1263.             <INPUT
  1264.               Name=Proxy
  1265.               Type="checkbox"
  1266.               Title="Povolit stahovßnφ pomocφ serveru proxy"
  1267.               onclick=SubActProx>
  1268.               
  1269.               <Input
  1270.               ID=Proxylabel
  1271.               Class="Label"
  1272.               Type=text
  1273.               Value="Pou₧φt server proxy"
  1274.               Size=100 READONLY>
  1275.         
  1276.         </TD>
  1277.     </TR>
  1278.     </TR>
  1279.         <TR>
  1280.         <TD WIDTH=100%>
  1281.             <Input
  1282.               ID=Pserver
  1283.               Class="Textbox"
  1284.               Type=text
  1285.               Value="Port serveru proxy"
  1286.               Size=33
  1287.               Name=pserver
  1288.               Title="Zadejte nßzev pou₧φvanΘho serveru proxy"
  1289.               onclick=Subclear('Pserver')>
  1290.               
  1291.               <Input
  1292.               ID=Puser
  1293.               Class="Textbox"
  1294.               Type=text
  1295.               Value="U₧ivatelskΘ jmΘno"
  1296.               Size=33
  1297.               Name=user
  1298.               Title="Pokud je to nutnΘ, zdadejte do tohoto polφΦka vaÜe u₧ivatelskΘ jmΘno pro p°φstup k serveru proxy"
  1299.               onclick=Subclear('Puser')>
  1300.               
  1301.               <Input
  1302.               ID=Ppass
  1303.               Class="Textbox"
  1304.               Type=text
  1305.               Value="Heslo"
  1306.               Size=33
  1307.               Name=password
  1308.               Title="Pokud je to nutnΘ, zadejte do tohoto polφΦka vaÜe p°φstupovΘ heslo k serveru proxy"
  1309.               onclick=Subclear('Ppass')>
  1310.         
  1311.         </TD>
  1312.     </TR>
  1313.     <TR>
  1314.         <TD WIDTH=100%>
  1315.             <Input
  1316.               Type="button"
  1317.               Class="Button"
  1318.               OnClick="SubCheck"
  1319.               name="checkit"
  1320.               Value="Zkontrolovat"
  1321.               onMouseOver="high(checkit)"
  1322.             onMouseOut="low(checkit)"
  1323.               Title="Vyhledßnφ vÜech d∙le₧it²ch aktualizacφ WIndows, kterΘ se jeÜt∞ nevyskytujφ ve vaÜφ cφlovΘ slo₧ce"/>
  1324.  
  1325.             <Input
  1326.               Type="button"
  1327.               Class=Button
  1328.               OnClick="SubSave"
  1329.               name="loadme"
  1330.               Value="Stßhnout"
  1331.               onMouseOver="high(loadme)"
  1332.             onMouseOut="low(loadme)"
  1333.               Title="Stßhne chyb∞jφcφ aktualizace"/>
  1334.               
  1335.               <Input
  1336.               Type="button"
  1337.               Class=Button
  1338.               OnClick="InstallThem"
  1339.               name="Install"
  1340.               Value="Nainstalovat"
  1341.               onMouseOver="high(Install)"
  1342.             onMouseOut="low(Install)"
  1343.               Title="Nainstaluje ze slo₧ky do systΘmu aktualizace, kterΘ ve Windows chybφ"/>
  1344.               
  1345.              
  1346.               <Input
  1347.               Type="button"
  1348.               Class=Button
  1349.               OnClick="SubQuit"
  1350.               Name="Ende"
  1351.               Value="Konec"
  1352.               onMouseOver="high(Ende)"
  1353.             onMouseOut="low(Ende)"
  1354.               Title="UkonΦφ skript"/>
  1355.         </TD>
  1356.     </TR>
  1357.  
  1358.   </TABLE>
  1359.  
  1360.  </BODY>
  1361. </HTML>
  1362.